<div class="navigation_container">
	<!--Navigation Starts-->
	<nav>
		<ul class="primary_nav">
			<li id="navhomeid" class="active"><a href="#">Home</a>
				<!--SUbmenu Starts-->
				<!-- <ul class="sub_menu">
					<li> <a href="#">Dresses</a>
						<ul>
							<li><a href="#">Skirts</a></li>
							<li><a href="#">Shorts</a></li>
							<li><a href="#">Premium Pants</a></li>
							<li><a href="#">Khakis</a></li>
							<li><a href="#">Casual Pants</a></li>
							<li><a href="#">Jeans</a></li>
							<li><a href="#">Outerwear & Blazers</a></li>
						</ul>
					</li>
					<li> <a href="#">Accessories</a>
						<ul>
							<li><a href="#">Sunglasses</a></li>
							<li><a href="#">Scarves</a></li>
							<li><a href="#">Hair Accessories</a></li>
							<li><a href="#">Hats and Gloves</a></li>
							<li><a href="#">Lifestyle</a></li>
							<li><a href="#">Jeans</a></li>
							<li><a href="#">Outerwear & Blazers</a></li>
						</ul>
					</li>
				</ul> -->
				<!--SUbmenu Ends-->
			</li>
			<li id="navproductid"><a href="#">Product</a>
				<!--SUbmenu Starts-->
				<!-- <ul class="sub_menu">
					<li> <a href="#">Men Summer Collection</a>
						<ul>
							<li><a href="#">Premium Pants</a></li>
							<li><a href="#">Khakis</a></li>
							<li><a href="#">Casual Pants</a></li>
							<li><a href="#">Jeans</a></li>
							<li><a href="#">Outerwear & Blazers</a></li>
						</ul>
					</li>
					<li> <a href="#">Accessories</a>
						<ul>
							<li><a href="#">Sunglasses</a></li>
							<li><a href="#">Scarves</a></li>
							<li><a href="#">Hair Accessories</a></li>
							<li><a href="#">Hats and Gloves</a></li>
							<li><a href="#">Jeans</a></li>
						</ul>
					</li>
				</ul>-->
				<!--SUbmenu Ends-->
			</li>
			<li id="navcartid"><a href="#">Cart</a></li>
		</ul>
		<div class="minicart">
			<a href="#" class="minicart_link" ><span class="item"><b><label id="cart_sumitem">0</label></b> ITEM /</span> <span class="price"><b>Rp. <label id="cart_sumprice">00</label></b></span> </a>
			<div class="cart_drop"><span class="darw"></span>
				<ul id="cart_listofitems">
				</ul>
				<div class="cart_bottom">
					<div class="subtotal_menu"><small>Subtotal:</small><big>Rp. <label id="cart_subtotal">00</label></big></div>
					<a href="#" id="navcheckoutid">Checkout</a>
				</div>
			</div>
		</div>
	</nav>
	<!--Navigation Ends-->
</div>
<script type="text/javascript">
$(document).ready(function(){
	/* VARIABLE STARTS */
	my_config['navcheckoutid'] = $("#navcheckoutid");
	my_config['navhomeid'] = $("#navhomeid");
	my_config['navproductid'] = $("#navproductid");
	my_config['navcartid'] = $("#navcartid");
	
	var primary_navli = $("ul.primary_nav > li");
	/* VARIABLE ENDS */
	
	/* ACTION HANDLER STARTS */
	my_config.navcheckoutid.click(function(){
		my_config.main.load('index.php/c_cart');
	});

	my_config.navhomeid.click(function(){
		//my_config.main.load('index.php/c_home');
		var redirect = '';
		window.location = redirect;

		var thisidx = $("ul.primary_nav > li").index(this);
		
		primary_navli.removeClass();

		//$("ul.primary_nav > li:eq(2)").addClass('active');
		//$("ul.primary_nav > li:eq("+thisidx+")").addClass('active');
		primary_navli.eq(thisidx).addClass('active');
	});
	my_config.navproductid.click(function(){
		my_config.main.load('index.php/c_product');

		var thisidx = $("ul.primary_nav > li").index(this);
		
		primary_navli.removeClass();

		//$("ul.primary_nav > li:eq(2)").addClass('active');
		//$("ul.primary_nav > li:eq("+thisidx+")").addClass('active');
		primary_navli.eq(thisidx).addClass('active');
	});
	my_config.navcartid.click(function(){
		my_config.main.load('index.php/c_cart');

		var thisidx = $("ul.primary_nav > li").index(this);
		
		primary_navli.removeClass();

		//$("ul.primary_nav > li:eq(2)").addClass('active');
		//$("ul.primary_nav > li:eq("+thisidx+")").addClass('active');
		primary_navli.eq(thisidx).addClass('active');
	});
	/* ACTION HANDLER ENDS */
	
});

</script>